﻿@model MediaAdmin.Controllers.LocatorController.PlayModel

@{
    ViewBag.Title = "HLS asset player";
}

<h3>HLS player</h3>

<div id="player">You need Flash to play these tests</div>

@section scripts
{    
    <script type="text/javascript" src="@Url.Content("~/Content/jw-assets/jwplayer.min.js")"></script>

    <script type="text/javascript">
    jwplayer("player").setup({
        file: '@Url.Content(Model.StreamingUrl)',
            flashplayer: '@Url.Content("~/Content/jw-assets/player.swf")',
            height: 400,
            plugins: { '@Url.Content("~/Content/jw-assets/qualitymonitor.swf")': {} },
            provider: '@Url.Content("~/Content/jw-assets/adaptiveProvider.swf")',
            width: 640
        });
        function loadStream(url) {
            jwplayer("player").load({ file: url, provider: '@Url.Content("~/Content/jw-assets/adaptiveProvider.swf")' });
            jwplayer("player").play();
            return false;
        }
    </script>

@*http://developer.longtailvideo.com/trac/browser/branches/adaptive/doc/guides/embedding.rst?rev=1601*@

}
